﻿#include "u_chart.h"

Chart::Chart(QGraphicsItem *parent, Qt::WindowFlags wFlags)
             : QChart(QChart::ChartTypeCartesian, parent, wFlags)
{
    //chart->setTitle("Line chart");
    //chart->setBackgroundBrush(QColor(255,255,255,10));
    //chart->setTheme(QChart::ChartThemeBlueCerulean);

    this->setBackgroundVisible(false);             //背景不显示
    this->setBackgroundRoundness(0);               //设置背景区域无圆角
    this->setMargins(QMargins(0,0,0,0));           //设置内边界全部为0
    this->layout()->setContentsMargins(0,0,0,0);   //设置外边界全部为0
    this->legend()->hide();
}

Chart::~Chart()
{

}
